package com.shangxia.dreaming.common.util;

import lombok.extern.slf4j.Slf4j;

import java.util.Random;

/**
 * @ProjectName: dreaming
 * @ClassName: CreatCodeUtil
 * @Time: 2020/10/25
 * @Author: zhouy
 * @Description:
 * @Experience:
 */

@Slf4j
public class CreatCodeUtil {
    public static void main(String[] args) {
        greatCode();
    }

    public static void greatCode() {

        for (int i = 0; i < 2000; i++) {
            int num1 = (int) (Math.random() * 12) + 1;
            int num2 = (int) (Math.random() * 12) + 1;
            while (0 == num1) {
                num1 = (int) (Math.random() * 12) + 1;
            }

            while (num2 == num1 || num2 == 0) {
                num2 = (int) (Math.random() * 10);
            }

//            int num3 = (int) (Math.random() * 10);
//            while (num3 == num1 || num3 == num2) {
//                num3 = (int) (Math.random() * 10);
//            }
            System.out.print(num1 + " ");
            System.out.print(num2 + " ");
//            System.out.print(num3);
            System.out.println();
        }


    }
}
